home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
T-TPUG Old Monthly Disks
/
(c)tg.d64
/
graph plotter.c
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
1KB
|
47 lines
100 PRINT"[147]":POKE53281,0:POKE53280,6
110 FORI=1230TO1261:POKEI,114:POKEI+54272,5:NEXT:REMTOP
120 FORI=1270TO1790STEP40:POKEI,107:POKEI+54272,5:NEXT:REM LEFT
130 FORI=1301TO1821STEP40:POKEI,115:POKEI+54272,5:NEXT:REM RIGHT
140 FORI=1830TO1861:POKEI,113:POKEI+54272,5:NEXT:REM BOTTOM
150 FORI=1351TO1380:POKEI,67:POKEI+54272,5:NEXT
160 FORI=1471TO1500:POKEI,67:POKEI+54272,5:NEXT
170 FORI=1591TO1620:POKEI,67:POKEI+54272,5:NEXT
180 FORI=1711TO1740:POKEI,67:POKEI+54272,5:NEXT:PRINT:PRINT:PRINT
190 PRINT:PRINTSPC(4)"15":PRINTSPC(4)"14":PRINTSPC(4)"13":PRINTSPC(4)"12"
200 PRINTSPC(4)"11":PRINTSPC(4)"10":PRINTSPC(5)"9":PRINTSPC(5)"8"
210 PRINTSPC(5)"7":PRINTSPC(5)"6":PRINTSPC(5)"5":PRINTSPC(5)"4":PRINTSPC(5)"3"
220 PRINTSPC(5)"2":PRINTSPC(5)"1":PRINTSPC(5)"0"
230 PRINTTAB(9)"A"SPC(4)"B"SPC(4)"C"SPC(4)"D"SPC(4)"E"SPC(4)"F"
240 IFZ$="Y"THEN310
250 DATAA,B,C,D,E,F
260 FORI=1TO6:READA$(I):NEXTI
270 DATA7,6,4,13,8,14
280 FORI=1TO6:READD(I):NEXTI
290 DATA1792,1797,1802,1807,1812,1817
300 FORI=1TO6:READA(I):NEXTI
310 C=54272:FORJ=1TO6
320 FORK=1971TO1975:POKEK,32:NEXTK:PRINT"":FORL=1TO22:PRINT:NEXTL
330 PRINT"VALUE FOR COLUMN ";A$(J);"(0-15) ";
340 INPUTA$:IFVAL(A$)=0THEN320
350 AA=VAL(A$):AA=INT(AA+.5):D=D(J):X=A(J)
360 IFAA<0ORAA>15THEN320
370 A=A(J)-(AA*40)+80:GOSUB430:NEXTJ
380 PRINT"":FORI=1TO22:PRINT:NEXT:FORI=1971TO1983:POKEI,32:NEXT
390 PRINT"WISHTO DO IT AGAIN? (Y/N)"
400 GETZ$:IFZ$=""THEN400
410 IFZ$="Y"THEN100
420 END
430 IFAA=1THEN530
440 IFAA=0THENRETURN
450 POKEX,160:POKEX+1,231:POKEX+2,105
460 POKEX+C,D:POKE(X+1)+C,D:POKE(X+2)+C,D:IFAA=2THEN490
470 FORI=X-40TOASTEP-40:POKEI,160:POKEI+1,231:POKEI+2,160
480 POKEI+C,D:POKE(I+1)+C,D:POKE(I+2)+C,D:NEXTI:GOTO510
490 POKEA,247:POKEA+1,208:POKEA+2,105
500 POKEA+C,D:POKE(A+1)+C,D:POKE(A+2)+C,D:GOTO530
510 POKEA,247:POKEA+1,208:POKEA+2,224
520 POKEA+C,D:POKE(A+1)+C,D:POKE(A+2)+C,D
530 POKEA-40,233:POKEA-39,160:POKEA-38,206
540 POKE(A-40)+C,D:POKE(A-39)+C,D:POKE(A-38)+C,D
550 RETURN